package com.nopcomm.pages;

import org.openqa.selenium.By;

import com.nopcomm.abstractPage;
import com.nopcomm.abstractTest;

public class LoginPage extends abstractPage {
	
	//loccaters
	public void LoginPage()
	{
		this.driver = abstractTest.getDriver();
	}
	//Businss actions
	
	public void Login(String Email,String password)
	{   //Action Email 
		driver.findElement(By.id(Email)).sendKeys(Email);
		//Action Password
		driver.findElement(By.id(password)).sendKeys(password);
		//go
		driver.findElement(By.className("button-1 login-button")).click();
	}
	
	//goes
	
	public void gotoForgotPassword(String forgotemail)
	{    //click to go
		driver.findElement(By.linkText("Forgot password")).click();
		//enter your email 
		driver.findElement(By.className("email")).sendKeys(forgotemail);
		//click on recover
		driver.findElement(By.name("send-email")).click();
	}
	
	//gets
	
	public String getErrorMessage()
	{
		return null;
	}
	
	//iss
	
	public boolean isUserLoggedIn()
	{
		return false;
	}
		
	

}
